package com.jumi.microservice.stock.dto;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @ClassName JmStockRequest
 * @Description
 * @Author Abel Yang
 * @Date 2020/8/19/019 15:15
 **/
public class StockGoodsRequest implements Serializable {
    private static final long serialVersionUID = -4276695016398568732L;
    @ApiModelProperty(hidden = true)
    private Long goodsId;
    private String goodsCode;
    private String goodsName;
    private Byte goodsType;
    private Byte status;
    private Boolean alarmed;
    private Long supplierId;
    private Long warehouseId;

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Byte getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(Byte goodsType) {
        this.goodsType = goodsType;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Boolean getAlarmed() {
        return alarmed;
    }

    public void setAlarmed(Boolean alarmed) {
        this.alarmed = alarmed;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Long getWarehouseId() {
        return null != warehouseId ? warehouseId : 0L;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }
}
